#ifndef DOORBELL_WSCLIENT_H
#define DOORBELL_WSCLIENT_H

#include "doorbell_codec.h"

#define WS_IMAGE_SUFFIX "/ws/image"
#define WS_AUDIO_SUFFIX "/ws/from_esp"
#define WS_PORT "20000"

void doorbell_wsclient_init(void);

void doorbell_wsclient_deinit(void);

void doorbell_wsclient_connect(void);

void doorbell_wsclient_disconnect(void);

void doorbell_wsclient_send_image(void *buf, int len);

void doorbell_wsclient_send_audio(void *buf, int len);

void doorbell_wsclient_register_audio_callback(void (*callback)(void *arg, const void *buf, int len), void *arg);

#endif